package com.arpa.oms.domain.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.wms.domain.entity.BasicEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 手动抓单
 * </p>
 *
 * @author rfwang
 * @since 2021-08-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="OmsCaptureOrderRecord对象", description="手动抓单")
public class OmsCaptureOrderRecord extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "手动抓单code")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "货主标识")
    @TableField("shipment_code")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    @TableField("shipment_name")
    private String shipmentName;

    @ApiModelProperty(value = "平台标识")
    @TableField("platform_code")
    private String platformCode;

    @ApiModelProperty(value = "平台名称")
    @TableField("platform_name")
    private String platformName;

    @ApiModelProperty(value = "店铺标识")
    @TableField("shop_code")
    private String shopCode;

    @ApiModelProperty(value = "店铺名称")
    @TableField("shop_name")
    private String shopName;

    @ApiModelProperty(value = "抓取创建时间")
    @TableField(value = "capture_gmt_created")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime captureGmtCreated;

    @ApiModelProperty(value = "抓取开始时间")
    @TableField(value = "capture_gmt_start")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime captureGmtStart;

    @ApiModelProperty(value = "抓取结束时间")
    @TableField(value = "capture_gmt_end")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime captureGmtEnd;

    @ApiModelProperty(value = "抓取条数")
    @TableField("capture_num")
    private Integer captureNum;

    @ApiModelProperty(value = "抓取成功时间")
    @TableField(value = "capture_gmt_success")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime captureGmtSuccess;


}
